import { connect } from 'react-redux';
import { setLogin } from '../actions';
import HomePage from '../../pages/HomePage/HomePage';
import MinePage from '../../pages/MinePage/MinePage';


const mapStateToProps = state => {
	return {
		isLogin: state.isLogin
	};
};

const mapDispatchToProps = dispatch => {
	return {
		onLoginClick: v => {
			dispatch(setLogin(v));
		}
	};
};

const GlobalHomeContainer = connect(
	mapStateToProps,
	mapDispatchToProps
)(HomePage);
const GlobalMineContainer = connect(
	mapStateToProps,
	mapDispatchToProps
)(MinePage);
export default {
	GlobalHomeContainer,
	GlobalMineContainer
};
